<template>

  <div>

    <!-- <v-list-item three-line :class="bgColor">
      <v-list-item-content>
        <v-list-item-title class="headline text-center">{{cardText}}</v-list-item-title>
      </v-list-item-content>
    </v-list-item> -->

    <v-card class="mx-auto">
      <v-img class="white--text" height="140px" src="https://cdn.vuetifyjs.com/images/cards/docks.jpg">
        <v-card-title class="align-end fill-height">{{cardText}}</v-card-title>
      </v-img>
      <!-- <v-card-title v-else>I'm a title</v-card-title> -->

      <!-- <v-card-text>I'm card text</v-card-text> -->
      <!-- <v-card-actions v-if="actions">
        <v-btn icon>
          <v-icon>mdi-heart</v-icon>
        </v-btn>
        <v-btn text>Click</v-btn>
        <v-btn outlined>Click</v-btn>
      </v-card-actions> -->
    </v-card>


    <v-layout wrap>
      <v-flex xs4>
        <v-card tile>
          <v-card-text>今日到期</v-card-text>
          <v-card-text>0</v-card-text>
        </v-card>
      </v-flex>

      <v-flex xs4>
        <v-card tile>
          <v-card-text>即将到期</v-card-text>
          <v-card-text>5</v-card-text>
        </v-card>
      </v-flex>

      <v-flex xs4>
        <v-card tile>
          <v-card-text>已到期</v-card-text>
          <v-card-text>5</v-card-text>
        </v-card>
      </v-flex>

    </v-layout>


  </div>




</template>

<script>
  export default {
    name: 'ForewarningCard',
    data() {
      return {

      }
    },

    props: {

      cardText: {
        type: String,
        default: "无标题"
      },

      bgColor: {
        type: String,
        default: ""
      }

    },
    methods: {


    }
  }

</script>

<style scoped>
  .border {
    border: 1px solid #ddd;
  }

  .v-card {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0px 0px 2px #ddd !important;
  }

  .v-card__text {
    text-align: center;
    padding: 0;
    font-size: 12px;
  }

  .bg-blue {
    background: #3399ff;
  }


  .bg-orange {
    background: #ff9900;
  }

</style>
